home *** CD-ROM | disk | FTP | other *** search
- /* MaxApplZone.simple.c */
- /* ==================================================================== */
- /* very basic HyperCard memory management function */
- /* © Copyright 1988 Sam Thornton, PO Box 123, Fairfield, NE 68938-0123 */
- /* May be copied & distributed without charge only. Not for commercial */
- /* sale or resale. */
- /* Written in LSC 3.01 11/2/88 - some portions © by Symantec */
- /* ==================================================================== */
-
- #include "HyperXCmd.h"
- #include "SetUpA4.h"
- #include "MemoryMgr.h"
- #include "unix.h" /* make sure you also include <unixst2d.c> in PROJ */
-
- pascal void main (paramPtr)
- XCmdBlockPtr paramPtr;
- {
- Size grow;
-
- RememberA0();
- SetUpA4();
-
- if (paramPtr->paramCount >= 1) { /* if any param, compact memory */
- MaxMem(&grow);
- MaxApplZone();
- }
- paramPtr->returnValue = NewHandle(10);
- stci_d(*paramPtr->returnValue,(TheZone->zcbFree / 1024),9);
-
- RestoreA4();
- return;
- }